package com.dream.jump.room

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

@Dao
interface TypeDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insertOrReplaceType(typeEntity: TypeEntity)

    @Query("select * from OrderType")
    suspend fun selectAllType(): Array<TypeEntity>
}